//
//  ExchangeListCell.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/9/6.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "ExchangeListCell.h"
#import "UIImage+Extension.h"
@implementation ExchangeListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)updateCellWithModel:(ActivityBillModel *)model {
    
    [self.goodsImageview sd_setImageWithURL:[NSURL URLWithString:model.thumbnailUrl]];
    self.goodsNameLabel.text = model.name;
    self.goodsActiveValueLabel.text = [NSString stringWithFormat:@"%0.2f",model.activeValue];
    if ([model.status.stringValue isEqualToString:@"1"]) {
        self.goodsOrderStatusLabel.text = @"未发货";
    }else {
        self.goodsOrderStatusLabel.text = @"已发货";

    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
